<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ServiceOrderPull.aspx.cs"
    Inherits="reports_ServiceOrderPull" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Service Order Pull</title>
    <link href="../Styles/acc.css" rel="stylesheet" type="text/css" />
    <link href="css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="js/ServiceOrderPull.js"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body style="font: normal 8pt Calabri, Arial, San-Serif;">
    <form id="form1" runat="server">
<%--    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
            <table style="width: 100%;">
                <tr>
                    <td>
                        <h3 style="font-size: 12pt;">
                            Service Order Pull</h3>
                    </td>
                    <td align="right">
                        <%=DateTime.Today.ToShortDateString() %>
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <b>Start Date</b>
                    </td>
                    <td>
                        <b>End Date</b>
                    </td>
                    <td>
                        <b>Pull By</b>
                    </td>
                    <td>
                        <b>
                            <asp:Literal ID="Literal1" runat="server" Text="Filter" Visible="False"></asp:Literal></b>
                    </td>
                    <td colspan="3">
                        <b>Products</b>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:TextBox ID="StartDate" runat="server" Width="130" />
                    </td>
                    <td valign="top">
                        <asp:TextBox ID="EndDate" runat="server" Width="130" />
                    </td>
                    <td valign="top">
                        <asp:DropDownList Width="130" ID="FilterBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="FilterBy_SelectedIndexChanged">
                            <asp:ListItem Value="AREA_MGR">Area Manager</asp:ListItem>
                            <asp:ListItem Value="ACCT_MGR">Account Manager</asp:ListItem>
                            <asp:ListItem Selected="True">ALL</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td valign="top">
                        <asp:ListBox Width="130px" ID="FilterData" runat="server" SelectionMode="Multiple"
                            DataTextField="TXT" DataValueField="VAL" Visible="False"></asp:ListBox>
                    </td>
                    <td valign="top">
                        <asp:CheckBoxList ID="chlProducts" runat="server" CellPadding="0" CellSpacing="1"
                            Font-Bold="true" Style="margin-left: 4px" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">HSIA</asp:ListItem>
                            <asp:ListItem Selected="True">IPTV</asp:ListItem>
                            <asp:ListItem Selected="True">VOIP</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                    <td valign="top">
                        <asp:Button ID="GetData" runat="server" Text="Pull Orders" OnClick="GetData_Click" />
                    </td>
                    <td valign="top"><img id="imgLoadingFirst" src="../images/LoadingProgressBar.gif" alt="Please wait..." style="display:none" />
<%--                        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                            <ProgressTemplate>
                                <img id="imgLoadingFirst" src="../images/LoadingProgressBar.gif" alt="Please wait..." />
                            </ProgressTemplate>
                        </asp:UpdateProgress>--%>
                        <asp:Image ID="Image1" Visible="false" runat="server" ImageUrl="~/images/Excel_icon.gif"
                            onclick="CreateExcelSheet()" Style="cursor: pointer;" ToolTip="Export Service Orders to an Excel Spreadsheet" />
                    </td>
                 </tr>
            </table>
            <table class="style1">
                <tr>
                    <td>
                        <center>
                            <asp:Label ID="Label1" runat="server" BackColor="#507CD1" Font-Size="Larger" Font-Bold="True"
                                ForeColor="White" Width="100%" Style="padding: 4px; margin-bottom: 1px" Visible="false" EnableViewState="false"></asp:Label></center>
                        <asp:Panel ID="pnl" runat="server" Width="100%" ScrollBars="Vertical" Height="500px"
                            Visible="false">
                            <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
                                EnableViewState="false">
                                <AlternatingRowStyle BackColor="White" />
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            </asp:GridView>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
           
<%--        </ContentTemplate>
    </asp:UpdatePanel>--%>
    </form>
</body>
</html>
